<?php /* Smarty version 2.6.26, created on 2018-07-05 16:54:25
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/article/index.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>文章列表</span></div> 
<div class="filter">
	<a href="?m=article&a=edit" class="add">添加文章</a>
	<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<th width="30"><input type="checkbox" class="checked_all"/></th>  
				<th width="100">分类</th>
				<th width="500">标题</td> 
				<th width="60">浏览</th>
				<th width="60">喜欢</th> 
				<th width="120">操作</th> 
				<th width="120">时间</th>
				<th></th>
		  	</tr>
	  	</thead> 
		<tbody>
		<?php if ($this->_tpl_vars['data']['list']): ?>		
			<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr>
					<td><input name="key_id[]" type="checkbox" value="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="checked_list"/></td>
					<td><a href="?m=article&a=index&cid=<?php echo $this->_tpl_vars['i']['cid']; ?>
"><?php echo $this->_tpl_vars['i']['cname']; ?>
</a></td>
					<td><a href="index.php?m=article&a=show&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['i']['title']; ?>
</a></td> 
					<td><?php echo $this->_tpl_vars['i']['click']; ?>
</td>
					<td><?php echo $this->_tpl_vars['i']['like']; ?>
</td> 
					<td>
						<a href="?m=article&a=edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="edit">编辑</a>
						<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a>
					</td>
					<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
					<td></td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?> 
			<td colspan="7"><div class="nomsg">还没有数据，赶快添加吧！</div></td>
		<?php endif; ?>
		</tbody>
	</table>
	<?php if ($this->_tpl_vars['data']['page']): ?><div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div><?php endif; ?> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=article&a=del', '.del_ck'); 
</script>